home *** CD-ROM | disk | FTP | other *** search
/ Windows Expert / Windows Expert.iso / program / jfklib.zip / MSGLOOP.HPP < prev    next >
C/C++ Source or Header  |  1991-05-11  |  733b  |  38 lines

  1. /*
  2.     MSGLOOP.HPP - Die Windows-Nachrichtenschleife
  3.     (C) 1990 by Joachim Kainz 'On a mission from Bhudda'
  4. */
  5.     #if !defined (__MSGLOOP_HPP)
  6.     #define __MSGLOOP_HPP
  7.  
  8.     #include "jfklib.hpp"
  9.  
  10.     class MSGLOOP {
  11.  
  12.       private:
  13.         HWND* phDlg;
  14.         WORD  wDlg,
  15.               wMaxDlg;
  16.  
  17.         HWND  hWnd,
  18.               hMDIClient;
  19.  
  20.         BOOL IsMDILoop    () { return hMDIClient != NULL; }
  21.         HWND GetMDIClient () { return hMDIClient;          }
  22.  
  23.       public:
  24.         EXPORT MSGLOOP ();
  25.         EXPORT ~MSGLOOP ();
  26.  
  27.         BOOL EXPORT AddDlg      (HWND hDlg       );
  28.         BOOL EXPORT RemoveDlg (HWND hDlg = NULL);
  29.  
  30.         BOOL EXPORT SetMDIMode (HWND hWnd, HWND hMDIClient);
  31.         void EXPORT ProcessMsg (LPMSG lpMsg                  );
  32.  
  33.         int  EXPORT Loop ();
  34.         BOOL EXPORT Peek ();
  35.  
  36.     };
  37.     #endif
  38.